package binary;

public class BinaryDemo {
    public static void main(String[] args) {
        //Integer.toBinaryString()将十进制转换为二进制字符串
        int a =36;
        System.out.println(Integer.toBinaryString((a)));//100100
        System.out.println(a);//36

        a++;
        System.out.println(Integer.toBinaryString(a));//100101
        System.out.println(a);

    }
}
